package me.sealer.ssm.mapper;

import me.sealer.ssm.model.ShortUrl;

/**
 * Created by sealer on 07-11-2017.
 */
public interface ShortUrlMapper {
    ShortUrl selectByLongUrl(String longUrl);

    ShortUrl selectByShortUrl(String shortUrl);

    void insertOne(ShortUrl shortUrl);

    void updateByLongUrl(ShortUrl shortUrl);

    int selectCountByLongUrl(String longUrl);

    void deleteByLongUrl(String longUrl);
}
